home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Scope / Scope Disk #084 (199x)(Scope PD)(US)[WB].zip / Scope Disk #084 (199x)(Scope PD)(US)[WB].adf / CheckFit / CheckFit.doc < prev    next >
Text File  |  1989-07-09  |  2KB  |  28 lines

  1.  
  2.                             CHECKFIT
  3.  
  4. Format:   CHECKFIT [FILENAME]<file>[DRIVE]<drive>[Q][QUIET]
  5. Template: CHECKFIT "FILENAME/A,DRIVE/A,Q=QUIET/S"
  6. Purpose:  To determine if there is enough room for the file on the drive
  7. Specification:
  8. CHECKFIT determines the size of the file and the free space remaining on
  9. the given device.  The device can be a floppy drive, hard disk, or the
  10. recoverable RAM device VD0:, however it will not work on the RAM: device
  11. because that device does not return a proper value for the number of
  12. blocks available.  (It returns the number of blocks in use for both the
  13. values NumBlocks and NumBlocksUsed, so it always looks as if there are
  14. none available.  See Info.)
  15.     The QUIET switch (or alternatively Q) will prevent all console output
  16. with the exception of reporting of errors in the command syntax.  Use of
  17. the switch does not prevent the issuing of return codes.  It is provided
  18. for use in a script file where console output is not desired and error
  19. detection is accomplished with IF statements.
  20.     The return codes are 0 for there being room enough on the device for
  21. the file, 10 (FAIL) if there is not enough room, and 20 (ERROR) if an
  22. error in command syntax is made or the file or device cannot be found.
  23.     This command was written in BCPL by Joseph M. Hinkle, Lopez, Washington
  24. 98261, and is freely distributable on bulletin boards not charging for
  25. their services.  The source code and this file is Copyright © 1989 by
  26. Joseph M. Hinkle.  A shareware fee of $2.00 sent to the address above
  27. would be appropriate.
  28.